/**
 * 作者:李杰
 * email: maillijie@gmail.com
 */
package com.javainfo.util;

import com.javainfo.service.inf.ArticleServiceIf;
import com.javainfo.service.inf.AttachmentsServiceIf;
import com.javainfo.service.inf.CategoryServiceIf;
import com.javainfo.service.inf.SubArticleServiceIf;
import com.javainfo.service.inf.UserServiceIf;

public class ServiceFactory {

	private CategoryServiceIf categoryService;
	private ArticleServiceIf articleService;
	private SubArticleServiceIf subArticleService;
	private AttachmentsServiceIf attachmentsService;

	private UserServiceIf userService;

	// private static ServiceFactory factory;
	//	
	// public static ServiceFactory getInstence(){
	// if(factory==null){
	// factory = new ServiceFactory();
	// }
	// return factory;
	// }
	//	
	// private ServiceFactory() {
	// }

	/**
	 * @return the categoryService
	 */
	public CategoryServiceIf getCategoryService() {
		return categoryService;
	}

	public void setCategoryService(CategoryServiceIf categoryService) {
		this.categoryService = categoryService;
	}

	public ArticleServiceIf getArticleService() {
		return articleService;
	}

	public void setArticleService(ArticleServiceIf articleService) {
		this.articleService = articleService;
	}

	public SubArticleServiceIf getSubArticleService() {
		return subArticleService;
	}
	
	public void setSubArticleService(SubArticleServiceIf subArticleService) {
		this.subArticleService = subArticleService;
	}

	public AttachmentsServiceIf getAttachmentsService() {
		return attachmentsService;
	}

	public void setAttachmentsService(AttachmentsServiceIf attachmentsService) {
		this.attachmentsService = attachmentsService;
	}

	public UserServiceIf getUserService() {
		return userService;
	}

	public void setUserService(UserServiceIf userService) {
		this.userService = userService;
	}
}
